package com.hsb.seckill.exception;

import com.hsb.seckill.result.ResBeanEnum;

/**
 * 全局异常
 */
public class GlobalException extends RuntimeException{
    private ResBeanEnum resBeanEnum;

    public GlobalException(ResBeanEnum resBeanEnum){
        this.resBeanEnum = resBeanEnum;
    }

    public ResBeanEnum getResBeanEnum() {
        return resBeanEnum;
    }

    public void setResBeanEnum(ResBeanEnum resBeanEnum) {
        this.resBeanEnum = resBeanEnum;
    }
}
